/*******************************************************************************
 * Copyright (c) 2012 March and Conquest.
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package mrusanov.towers.cards.gems;

import mrusanov.towers.cards.AbstractCard;
import mrusanov.towers.main.Game;
import mrusanov.towers.players.Player;
import mrusanov.towers.resources.ResourceCost;

public class WorkHelp extends AbstractCard {
	private static final long serialVersionUID = 3678080931148222021L;

	@Override
	public ResourceCost getCost() {
		return ResourceCost.gems(4);
	}

	@Override
	public void executeAction(Game game, Player player, Player enemy) {
		player.getTower().addToTower(7);
		player.getResources().subtractBricks(10);

	}

	@Override
	public String getNameMessageKey() {
		return "card.workHelp.name";
	}

	@Override
	public String getDescriptionMessageKey() {
		return "card.workHelp.description";
	}

}
